import 'package:json_annotation/json_annotation.dart';

part 'scan_result_data.g.dart';

@JsonSerializable()
class ScanResultData {
  @JsonKey(name: 'userOpenId')
  final String? userOpenId;

  @JsonKey(name: 'result')
  final String? result;

  factory ScanResultData.fromJson(Map<String, dynamic> json) =>
      _$ScanResultDataFromJson(json);

  Map<String, dynamic> toJson() => _$ScanResultDataToJson(this);

  ScanResultData({
    this.userOpenId,
    this.result,
  });
}

